home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>4</cardCount>
- <cardID>2971</cardID>
- <listID>3711</listID>
- <cantModify><false /></cantModify>
- <cantDelete><true /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>function height r
- return (item 4 of r) - (item 2 of r)
- end height
-
- function width r
- return (item 3 of r) - (item 1 of r)
- end width
-
- on openstack
- hide menubar
- global flg,usrlvl
- set lockScreen to true
- set lockMessages to true
- push this card
- go to card "User Preferences" of stack "Home"
- put card field "User Level" into usrlvl
- pop card
- set lockScreen to false
- set the rect of card button id 4 of card id 4396 to 51,174,111,195
- global restarth,restartw
- put width(rect of button id 4 of card id 4396) into restartw
- put height(rect of button id 4 of card id 4396) into restarth
- hide menubar
- set userlevel to 2
- end openStack
- on startUp
- getHomeInfo
- pass startUp -- to a startUp XCMD, if present
- end startUp
-
- on resume
- getHomeInfo
- pass resume -- to a resume XCMD, if present
- end resume
-
- on getHomeInfo
- global stacks,applications,documents,userName
- set lockScreen to true
- set lockMessages to true
- push this card
- go to card "User Preferences" of stack "Home"
- put card field "User Name" into userName
- set userLevel to card field "User Level"
- set powerKeys to the hilite of button "Power Keys"
- set blindTyping to the hilite of button "Blind Typing"
- put field "paths" of card "stacks" into stacks
- put field "paths" of card "applications" into applications
- put field "paths" of card "documents" into documents
- pop card
- set lockScreen to false
- set lockMessages to false
- end getHomeInfo
-
- on searchScript pattern,stackName -- search all scripts of a stack
- set lockMessages to true
- if stackName is not empty then go to stack stackName
-
- if the script of this stack contains pattern
- then edit script of this stack
-
- repeat with i = 1 to the number of bkgnds
- go to card 1 of bkgnd i
- if the script of this bkgnd contains pattern
- then edit script of bkgnd
-
- repeat with j = 1 to the number of bkgnd buttons
- if the script of bkgnd button j contains pattern
- then edit script of bkgnd button j
- end repeat
-
- repeat with j = 1 to the number of bkgnd fields
- if the script of bkgnd field j contains pattern
- then edit script of bkgnd field j
- end repeat
-
- end repeat
-
- repeat with i = 1 to the number of cards
- go card i
- if the script of this card contains pattern
- then edit script of this card
-
- repeat with j = 1 to the number of card buttons
- if the script of card button j contains pattern
- then edit script of card button j
- end repeat
-
- repeat with j = 1 to the number of card fields
- if the script of card field j contains pattern
- then edit script of card field j
- end repeat
-
- end repeat
- set lockMessages to false
- end searchScript
-
- on idle
- if the commandKey is down
- then
- beep 2
- answer "Don't Do That!"
- end if
- end idle
- on show
- beep 2
- answer "Don't Do That!"
- end show
- on edit
- beep 2
- answer "Don't Do That!"
- end edit
-
- </script>
- <background id="2666" file="background_2666.xml" name="" />
- <card id="2971" file="card_2971.xml" marked="false" name="HDP1" owner="2666" />
- <card id="4396" file="card_4396.xml" marked="false" name="" owner="2666" />
- <card id="3921" file="card_3921.xml" marked="false" name="" owner="2666" />
- <card id="4216" file="card_4216.xml" marked="false" name="" owner="2666" />
- </stack>
-